package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.FlightCity;
import cn.wolfcode.luowowo.article.mapper.DestinationMapper;
import cn.wolfcode.luowowo.article.mapper.FlightCityMapper;
import cn.wolfcode.luowowo.article.query.DestinationQueryObject;
import cn.wolfcode.luowowo.article.service.IDestinationService;
import cn.wolfcode.luowowo.article.service.IFlightCityService;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Created by admin on 2019/8/9.
 */


@Service
public class FlightCityServiceImpl implements IFlightCityService {

    @Autowired
    private FlightCityMapper flightCityMapper;


    @Override
    public List<FlightCity> queryHotCity() {
        return flightCityMapper.selectHotCity();
    }

    @Override
    public List<FlightCity> queryCity(String statWord, String endWord) {
        return flightCityMapper.selectCity(statWord,endWord);
    }
}

